package com.yonghui.springsecurityoauth2demo.controller;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author he_jiebing@jiuyv.com
 * @create 2024-05-13 16:57
 */
public class BCryptEncoder {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String password = "112233";
        String encodedPassword = encoder.encode(password);
        System.out.println("Encoded Password: " + encodedPassword);
    }
}
